package com.Jshop.user.api;

import com.Jshop.user.pojo.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.Mapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestParam;


public interface UserApi {

    @GetMapping("query")
    User queryUser(
            @RequestParam("username") String username,
            @RequestParam("password") String password
    );

    /**
     * 下单时 添加用户积分
     * */
    @PutMapping("addPoint")
    Boolean addPoint(
            @RequestParam("username") String username
    );
}
